Release 10.1A: OpenEdge Getting Started:
Object-oriented Programming
Compiling class files
A class is a user-defined data type and encompasses all classes and interfaces above it in its hierarchy. When you compile a class, the compiler does not only compile the
.clsfile identified to the compiler. Instead the compiler compiles all the.clsfiles that compose its hierarchy. For each class file that is in the class's hierarchy, the compiler generates in-memory r-code and if the compilerSAVEoption is specified, generates an r-code file.Thus, the files compiled by the compiler include:
The compiler does not fully compile or generate an r-code file for referenced class files, that is, other classes that are instantiated within a class using the
Caution: When you compile a class, although Progress automatically compiles all super classes in its class hierarchy, it does not know about and cannot automatically compile any of the subclasses of the class you are compiling. Thus, when you change a super class, you must compile the class and all subclasses of the class to ensure that all objects with this class in their hierarchy inherit the updated state or behavior. Progress, by itself, has no knowledge of these subclasses, so you must keep track of them manually or by using configuration management tools.NEWstatement. The compiler instead inspects referenced class files to determine their external interfaces (their public methods and data members). This information is used to validate the use of these classes in the class being compiled. The compiler traces up through the referenced class's hierarchy for super classes and interfaces. It does not check any additional class references specified in this referenced class hierarchy.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |